package com.prothink.service.impl;

import com.prothink.dao.UserCommentDao;
import com.prothink.entity.FenyeNode;
import com.prothink.entity.JsComment;
import com.prothink.service.UserCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: siyun2
 * @BelongsPackage: com.prothink.service.impl
 * @Author: Jin
 * @CreateTime: 2022-12-06  19:46
 * @Description: TODO
 */
@Service
public class UserCommenServiceImpl implements UserCommentService {
    @Autowired
    private UserCommentDao userCommentDao;
    @Override
    public FenyeNode<JsComment> getUserComment(JsComment jsComment) {
        FenyeNode<JsComment> usercomment = new FenyeNode<>();
        List userComment = userCommentDao.getUserComment(jsComment);
        usercomment.setComment(userComment);
        return usercomment;
    }
}
